package com.jgy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Builder;
import lombok.Data;

/**
 * 
 * @TableName f_order
 */
@TableName(value ="f_order")
@Data
@Builder
public class FOrder implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    //@TableField(value = "title")
    private String id;

    /**
     * 产品名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 产品id
     */
    @TableField(value = "product_id")
    private String productId;

    /**
     * 支付人id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

    /**
     * 订单生成时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 支付状态
     */
    @TableField(value = "pay_state")
    private Integer payState;

    /**
     * 实付金额
     */
    @TableField(value = "real_fee")
    private BigDecimal realFee;

    /**
     * 总金额
     */
    @TableField(value = "payable_fee")
    private BigDecimal payableFee;

    /**
     * 订单编号
     */
    @TableField(value = "order_no")
    private String orderNo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}